package restaurant.selector.logic;

import restaurant.selector.database.DatabaseManager;

public class LogicFactory {

	public static final String LOGIC_SIMPLE = "simple";
	
	private static final LogicFactory logicFactory = new LogicFactory();
	
	private LogicFactory(){
		
	}
	
	public static LogicFactory getInstance(){
		return logicFactory;
	}
	
	public LogicInterface getLogic( String type, DatabaseManager dbManager ){
		
		if( type.equalsIgnoreCase(LOGIC_SIMPLE))
			return new SimpleLogic(dbManager);
		
		return null;
	}
	
}
